$(document).ready(function() {
			if("成功预约" === $("#msg001").val()){
				parent.window.location.href= $("#ctx").val()+"/reservation/tdcReservation/list";  
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
                parent.layer.close(index);
			}
			$("#inputForm").validate({
				submitHandler: function(form){
				  $.post(
		                $('#inputForm').val()+$("#ctx").val()+"/reservation/tdcReservation/updateStatus",  
		                $(form).serialize(),  
		                function(data){  
		                    
		                }  
		            );  
		       
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});